import java.sql.Connection;

public class test {
    public static void main(String[] args) {
//获取数据库的连接
        Connection conn = DBUtil.getConnection();
        DBUtil dbUtil = new DBUtil();
//测试查询
        String sql = "select * from tb_student";
        dbUtil.select(conn, sql);
        //测试新增（插入）信息
        student student = new student(0, "周六", 22, "男", "Z240107", "江西软件职业技术大学");
        dbUtil.insert(student, conn);
//测试修改信息功能
     //   student student = new student(3,"周六",22,"男","B220109","江西软件职业技术大学");
     //   dbUtil.update(student,conn);
//测试删除信息功能
        dbUtil.delete(1,conn);
    }
}